#!/usr/bin/awk -f
#将演员合作数据转为图
#输入：actor1 actor2 ... actorN
#输出：actor1 actor2 <br/>actor1 actor3 <br/>...

BEGIN {FS=" "; CNT=1;}
{
    if (a[$1] == 0) a[$1] = CNT++;
    if (a[$2] == 0) a[$2] = CNT++;
#    print a[$1] " " a[$2]    
}
END {
    print CNT-1
}
